﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel;
using System.Text;

using Xyz.BusinessObjects;
using Xyz.DataObjects;
using Xyz.DataObjects.Interfaces;
using Xyz.Service.DataTransferObjects;
using Xyz.Service.ServiceContracts;

namespace Xyz.Service
{

    /// <summary>
    /// This service will handle all methods for Flight Price Services
    /// </summary>
    [ServiceBehavior(InstanceContextMode = InstanceContextMode.PerSession)]
    public class FlightPriceService : IFlightPriceService
    {

        private static readonly IFlightPriceDao FlightPriceDao = DataAccess.FlightPriceDao;

        public decimal GetFlightPriceByFlightIdSeatTypeCode(int flightId, string seatTypeCode)
        {
            decimal Price = FlightPriceDao.GetFlightPriceByFlightIdSeatTypeCode(flightId, seatTypeCode);
            return Price;
        }
        

    }
}